package com.haliyoo.adhs.service;

import com.haliyoo.adhs.common.ResultData;
import com.haliyoo.adhs.model.User;


public interface UserService {
    public ResultData<User> findAll();

    public ResultData<String> save(User user);

    public ResultData<String> delete(User user);

    public ResultData<User> findById(int id);
    
    public ResultData<User> findByName(String userName);
    
    public ResultData<String> login(Integer userId,String password);
    
    public ResultData<String> login(String userName,String password);
    
    public ResultData<String> login(Integer weiboUserId, String password, Short weiboFlag);
    
    public ResultData<String> logout(Integer userId);
    
}
